REM -----------------------------------------------------------------
REM --- SAMPLE CHIEFPRO BATCH FILE TO RUN FROM SETUP.EXE
REM --- Put the line: $BATCH-FILE=SETUP.CHF in SETUPINF.INF
REM --- Shows examples of what can be done before the install starts
REM -----------------------------------------------------------------
REM -- some GLOBAL CONSTANTS
#CONST OURZIP=$SOURCEDIR\WINSTALL.ZIP
#CONST OURDLL=$TEMPDIR\WINSTALL.DLL
#CONST OURINF=$TEMPDIR\WINSTALL.INF
REM --- LOAD CTL3DV2.DLL OR CTL3D.DLL
LOADCTL3D
REM -- unzip the LANGUAGE DLLs
IF EXIST OURZIP GOTO UNZIP-IT
REM --- ELSE Skip the choices
GOTO START-ALL
:UNZIP-IT
REM -- display a message
DISPLAY Setting up Chief's Installer Pro language DLLs. \n\nPlease wait ...
REM --- unzip the file
UNZIP OURZIP $TEMPDIR\C_ZIP
REM - make sure we can clean up afterwards ...
If ERRORCODE 0 WRITEINF OURINF;$CLEANUP=$TEMPDIR\C_ZIP\*.DLL
If ERRORCODE 0 WRITEINF OURINF;$CLEANUP=$TEMPDIR\C_ZIP\*.RC
If ERRORCODE 0 WRITEINF OURINF;$CLEANUP=$TEMPDIR\C_ZIP\*.NOW
WRITEINF OURINF;$CLEANUP=$TEMPDIR\C_ZIP
REM - remove display dialog ...
DELAY 2
DISPLAY OFF
REM --- allow us to make some choices here!
:CHOICES
REM -- present choices
if Choice "&Dansk;Nede&rlands;&English;&Franτais;De&utsch;&Norsk;&Italiano;&Espanol;S&venska;&Yoruba;Please choose your language, or Click on Cancel (for English):" GOTO CHOICE
REM --- ELSE; No choice, so,
GOTO START-ALL
REM --- Danish
:1
COPY $TEMPDIR\C_ZIP\DANSK.DLL OURDLL
GOTO START-ALL
REM --- Dutch
:2
COPY $TEMPDIR\C_ZIP\NEDERLAN.DLL OURDLL
GOTO START-ALL
REM --- English
:3
COPY $TEMPDIR\C_ZIP\ENGLISH.DLL OURDLL
GOTO START-ALL
REM --- French
:4
COPY $TEMPDIR\C_ZIP\FRANCAIS.DLL OURDLL
GOTO START-ALL
REM --- German
:5
COPY $TEMPDIR\C_ZIP\DEUTSCH.DLL OURDLL
GOTO START-ALL
REM --- Norwegian
:6
COPY $TEMPDIR\C_ZIP\NORSK.DLL OURDLL
GOTO START-ALL
REM --- Italian
:7
COPY $TEMPDIR\C_ZIP\ITALIANO.DLL OURDLL
GOTO START-ALL
REM --- Spanish
:8
COPY $TEMPDIR\C_ZIP\ESPANOL.DLL OURDLL
GOTO START-ALL
REM --- Swedish
:9
COPY $TEMPDIR\C_ZIP\SVENSKA.DLL OURDLL
GOTO START-ALL
REM --- Yoruba
:10
COPY $TEMPDIR\C_ZIP\YORUBA.DLL OURDLL
GOTO START-ALL
:START-ALL
GOTO VIDEO
REM -- adjust things according to screen display driver